﻿using System.ComponentModel.DataAnnotations;

namespace KseCms.Application
{
    public class ProductDto
    {
        [Required,MaxLength(50)]
        public string Id { get; set; }

        [Required(ErrorMessage = "Required"), MaxLength(200,ErrorMessage = "cannot more than 200")]
        public string Name { get; set; }

        public string Description { get; set; }

        public decimal Price { get; set; }

        public DateTime CreatedTime { get; set; }

        public DateTime UpdatedTime { get; set; }
    }

}
